﻿<Window x:Class="WP7Config.wndConfig"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Wp7 Print Helper Service configuration" Height="423" Width="525" FontSize="12" FontWeight="Normal" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">
    <Grid>
        <Image Height="60" HorizontalAlignment="Left" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="503" Source="/WP7Config;component/Resources/Banner.bmp" />
        <TextBlock Height="32" HorizontalAlignment="Left" Margin="23,16,0,0" Name="textBlock2" Text="Configuration of the WP7 Print Helper service" VerticalAlignment="Top" Width="392" Foreground="DarkBlue" FontSize="18" FontWeight="Bold" />
        <TextBlock Height="53" HorizontalAlignment="Left" Margin="23,74,0,0" Name="textBlock1" VerticalAlignment="Top" Width="458" TextWrapping="Wrap" TextAlignment="Justify" Foreground="DarkBlue">
            This window allows you to configure the WP7 Print Helper service the first time you use it, or at any subsequent time when you wish to change the I/O port the service uses to communicate with a Windows 7 phone.
        </TextBlock>
        <TextBlock Height="34" HorizontalAlignment="Left" Margin="23,125,0,0" Name="textBlock3" Text="TextBlock" VerticalAlignment="Top" Width="458" TextWrapping="Wrap" Foreground="DarkBlue" FontStyle="Italic" FontWeight="SemiBold">
            The port normally used by the service is Port 8000. You must choose a port that is not used by any other service           
        </TextBlock>
        <TextBlock Height="52" HorizontalAlignment="Left" Margin="23,159,0,0" Name="textBlock4" Text="TextBlock" VerticalAlignment="Top" TextWrapping="Wrap" Width="458" TextAlignment="Justify" Foreground="DarkBlue">
       If the service is already running, the new configuration will not take effect until the service is stopped and restarted. You may choose to stop and restart the service with the new configuration by checking the checkbox below.</TextBlock>
        <Button Height="27" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Margin="274,304,0,0" Name="btnCancel" VerticalAlignment="Top" Width="85" Click="btnCancel_Click">
            <StackPanel Height="23" Margin="0,-1,0,0" Orientation="Horizontal" Width="70">
                <Image Source="/WP7Config;component/Resources/delete2.png" />
                <TextBlock Height="18" Margin="10,0,0,0" Text="Cancel" Width="37" />
            </StackPanel>
        </Button>
        <Button Height="27" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Margin="394,304,0,0" Name="btnOK" VerticalAlignment="Top" Width="85" Click="btnOK_Click">
            <StackPanel Height="23" Margin="0,-1,0,0" Orientation="Horizontal" Width="80">
                <Image Source="/WP7Config;component/Resources/check2.png" />
                <TextBlock Height="18" Margin="15,0,0,0" Text="Save" Width="39" />
            </StackPanel>
        </Button>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="274,254,0,0" Name="tbPort" VerticalAlignment="Top" Width="85" KeyDown="tbPort_KeyDown" TextChanged="tbPort_TextChanged" Foreground="DarkBlue" />
        <Label Content="I/O port used by the service :" Height="35" HorizontalAlignment="Left" Margin="108,254,0,0" Name="label1" VerticalAlignment="Top" Width="167" Foreground="DarkBlue" />
        <CheckBox Content="Stop and restart the WP7 Print Helper service" Height="16" HorizontalAlignment="Left" Margin="112,231,0,0" Name="cbStopStart" VerticalAlignment="Top" Width="262" Foreground="DarkBlue" />
    </Grid>
</Window>
